package enums;

public enum travelenums {
	QINTONG(1,"青铜会员"),
	BAIYIN(2,"白银会员"),
	
	
	NOLOGIN(0,"nologin"),
	SUCCESS(1,"succ"),  /*加入购物车成功*/
    ERRO(-1,"erro"),		/*加入购物车失败*/
    
    CANCEL(-10,"交易取消"),
	TOPAY(10,"待付款"),
	SUCCPAY(20,"交易成功"),		/*未出行*/
	SUCCTRAVEL(30,"交易成功"),  /*已出票*/
	COMMENTED(40,"已评价"),
	
	ALIPAY(101,"支付宝支付"),
		
	NOTFOUND(-100,"您没按套路出牌，小蜜听不懂您在说什么...")
	;
	
    private int state;
    private String info;

    travelenums(int state, String info) {
        this.state = state;
        this.info = info;
    }

    public int getState() {
        return state;
    }


    public String getInfo() {
        return info;
    }


    public static travelenums stateOf(int index)
    {
        for (travelenums state : values())
        {
            if (state.getState()==index)
            {
                return state;
            }
        }
        return null;
    }
    public interface AlipayCallBack{
    	String ODER_WAIT_BUYER_PAY="WAIT_BUYER_PAY";
    	String ODER_TRADE_SUCCESS="TRADE_SUCCESS";
    	String RESPONSE_SUCCESS="success";
    	String RESPONSE_FAILED="failed";
    }
    	
}
